package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/27 21:19
 */
public class HeatMapResult implements Parcelable {

    private String wifiHeatMap;
    private double coverRate;

    public HeatMapResult(){

    }

    protected HeatMapResult(Parcel in) {
        wifiHeatMap = in.readString();
        coverRate = in.readDouble();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(wifiHeatMap);
        dest.writeDouble(coverRate);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<HeatMapResult> CREATOR = new Creator<HeatMapResult>() {
        @Override
        public HeatMapResult createFromParcel(Parcel in) {
            return new HeatMapResult(in);
        }

        @Override
        public HeatMapResult[] newArray(int size) {
            return new HeatMapResult[size];
        }
    };

    public String getWifiHeatMap() {
        return wifiHeatMap;
    }

    public void setWifiHeatMap(String wifiHeatMap) {
        this.wifiHeatMap = wifiHeatMap;
    }

    public double getCoverRate() {
        return coverRate;
    }

    public void setCoverRate(double coverRate) {
        this.coverRate = coverRate;
    }

    @Override
    public String toString() {
        return "HeatMapResult{" +
                "wifiHeatMap='" + wifiHeatMap + '\'' +
                ", coverRate=" + coverRate +
                '}';
    }
}
